import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";

import "bootstrap";
import "bootstrap/dist/css/bootstrap.min.css";

const ws = new WebSocket("ws://127.0.0.1:8081");
ws.onopen = function (ev: Event) {
  ws.onmessage = function (ev: MessageEvent) {
    console.log(`received message: ${ev.data}`);
  };

  ws.send("hello");
};



createApp(App).use(router).mount("#app");
